class CreateNote < ActiveRecord::Migration
  def self.up
    create_table :note do |t|
    t.date     "data"
    t.integer  "tipo_nota_id"
    t.text     "testo"
    t.binary   "allegato"
    t.integer  "created_by"
    t.integer  "updated_by"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "deleted_at"

    t.references :nota_ref, :polymorphic => true

      t.timestamps
    end
  end

  def self.down
    drop_table :note
  end
end
